﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using System;

public class Game0 : MonoBehaviour 
{

    #region 事件
    #endregion

    #region 变量
    #endregion

    #region Others
    public EndTip endTip;
    //脚手架
    public JiaoShouJia jiaoShouJia;

    #endregion
    //
    void Awake()
    {
        PlayerPrefs.SetString("sceneName", "Scene0");
    }
    void Start()
    {
        jiaoShouJia.OnOver += jiaoshoujia_OnOver;
        StartPlay();
        
        
    }

    private void jiaoshoujia_OnOver()
    {

        endTip.ShowTip(TipWords.game0_jiaoshoujiaTip);
    }

    private void StartPlay()
    {
        if (PlayerPrefs.GetString("mode")=="教育模式")
        {
            Debug.Log("开始教育模式");
            Debug.Log("当前场景为：" + PlayerPrefs.GetString("sceneName"));
        }
        else
        {
            Debug.Log("开始体验模式");
            Debug.Log("当前场景为：" + PlayerPrefs.GetString("sceneName"));
        }
    }
}
